package com.chinacoal.hr.levelapi.client.fallback;

import com.chinacoal.hr.levelapi.client.BizTravelClient;
import com.chinacoal.hr.levelapi.client.response.Result;
import com.chinacoal.hr.levelapi.client.response.ResultCode;
import com.chinacoal.hr.levelapi.client.response.ResultGenerator;
import com.chinacoal.hr.levelapi.entity.BizTravel;

/**
 * Created by jinyabin on 2020/10/29.
 */
public class BizTravelClientFallback implements BizTravelClient {

    @Override
    public Result list(long page, long limit, String ouId, String deptCode, String deptName, String empName, String empCode, String bizTravelCode, String businessStatus, String queryRange) {
        return ResultGenerator.genFailedResult(ResultCode.REQUEST_FAILED);
    }

    @Override
    public Result listEmp(String travelId) {
        return ResultGenerator.genFailedResult(ResultCode.REQUEST_FAILED);
    }

    @Override
    public Result add(BizTravel record) {
        return ResultGenerator.genFailedResult(ResultCode.REQUEST_FAILED);
    }

    @Override
    public Result update(String bizTravelId, BizTravel record) {
        return ResultGenerator.genFailedResult(ResultCode.REQUEST_FAILED);
    }

    @Override
    public Result delete(String bizTravelId) {
        return ResultGenerator.genFailedResult(ResultCode.REQUEST_FAILED);
    }

    @Override
    public Result submit(String bizTravelId, BizTravel record) {
        return ResultGenerator.genFailedResult(ResultCode.REQUEST_FAILED);
    }

    @Override
    public Result drawback(String bizTravelId, BizTravel record) {
        return ResultGenerator.genFailedResult(ResultCode.REQUEST_FAILED);
    }

    @Override
    public Result change(String bizTravelId, BizTravel record) {
        return ResultGenerator.genFailedResult(ResultCode.REQUEST_FAILED);
    }
}
